<?php


	namespace Midi\Translating;
	
	use Midi\Event\ChannelEvent;

	use \Midi\Delta;
	use \Midi\FileHeader;
	use \Midi\TrackHeader;
	use \Midi\Event;

	class TextFormatter extends Formatter {
		
		protected $indent;
		
		protected $currentTrack;
		
		public function __construct() {
			$this->indent = '';
			$this->currentTrack = 1;
		}
		
		protected function formatText($text) {
			return $this->indent . $text . "\n";
		}

		
		public function formatEvent(Event $event) {
			return $this->formatText($event->__toString());
		}
		public function formatChannel(Event $event) {
			if ($event instanceof ChannelEvent)
				return $this->formatText($event->getChannelNo());
		}

		
	}

?>